a11y: Don't manage window events as a exception
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 23 Aug 2011 15:58:53 +0000 (17:58 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Aug 2011 14:57:21 +0000 (10:57 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=657260

gtk/a11y/gailutil.c

index b835b02696e18bff91dc4c5a39f3de7a50226f85..e9ca92b007815f1b37044d8f334fe7223fb5cf9c 100644 (file)
@@ -1,4 +1,5 @@
 /* GAIL - The GNOME Accessibility Implementation Library
+ * Copyright 2011, F123 Consulting & Mais Diferenças
  * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
  *
  * This library is free software; you can redistribute it and/or
@@ -270,26 +271,7 @@ gail_util_add_global_event_listener (GSignalEmissionHook  listener,
 
   split_string = g_strsplit (event_type, ":", 3);
 
-  if (split_string)
-    {
-      if (!g_strcmp0 ("window", split_string[0]))
-        {
-          static gboolean initialized = FALSE;
-
-          if (!initialized)
-            {
-              do_window_event_initialization ();
-              initialized = TRUE;
-            }
-          rc = add_listener (listener, "GtkWindowAccessible", split_string[1], event_type);
-        }
-      else
-        {
-          rc = add_listener (listener, split_string[1], split_string[2], event_type);
-        }
-
-      g_strfreev (split_string);
-    }
+  rc = add_listener (listener, split_string[1], split_string[2], event_type);
 
   return rc;
 }
@@ -494,4 +476,5 @@ _gail_util_install (void)
   atk_class->get_toolkit_version = gail_util_get_toolkit_version;
 
   listener_list = g_hash_table_new_full (g_int_hash, g_int_equal, NULL, g_free);
+  do_window_event_initialization ();
 }